package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.BaseEntity;


@TableName("mkt_activity")
public class MktActivity extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(type = IdType.AUTO)
    @TableField("id")
    private Long id;

    /** 活动名称 */
    @Excel(name = "活动名称")
    @TableField("name")
    private String name;

    /** 序号 */
    @Excel(name = "序号")
    @TableField("num")
    private Integer num;

    /** 显示位置 */
    @Excel(name = "显示位置")
    @TableField("display_position")
    private String displayPosition;

    /** 图片 */
    @Excel(name = "图片")
    @TableField("picture")
    private String picture;

    /** H5链接 */
    @Excel(name = "H5链接")
    @TableField("link")
    private String link;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField("begin_time")
    private Date beginTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField("end_time")
    private Date endTime;

    /** 活动规则 */
    @Excel(name = "活动规则")
    @TableField("rule")
    private Integer rule;

    /** 状态 */
    @Excel(name = "状态")
    @TableField("state")
    private Integer state;

    @TableField("create_time")
    private Date createTime;

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setNum(Integer num)
    {
        this.num = num;
    }

    public Integer getNum()
    {
        return num;
    }
    public void setDisplayPosition(String displayPosition)
    {
        this.displayPosition = displayPosition;
    }

    public String getDisplayPosition()
    {
        return displayPosition;
    }
    public void setPicture(String picture)
    {
        this.picture = picture;
    }

    public String getPicture()
    {
        return picture;
    }
    public void setLink(String link)
    {
        this.link = link;
    }

    public String getLink()
    {
        return link;
    }
    public void setBeginTime(Date beginTime)
    {
        this.beginTime = beginTime;
    }

    public Date getBeginTime()
    {
        return beginTime;
    }
    public void setEndTime(Date endTime)
    {
        this.endTime = endTime;
    }

    public Date getEndTime()
    {
        return endTime;
    }
    public void setRule(Integer rule)
    {
        this.rule = rule;
    }

    public Integer getRule()
    {
        return rule;
    }
    public void setState(Integer state)
    {
        this.state = state;
    }

    public Integer getState()
    {
        return state;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("num", getNum())
            .append("displayPosition", getDisplayPosition())
            .append("picture", getPicture())
            .append("link", getLink())
            .append("beginTime", getBeginTime())
            .append("endTime", getEndTime())
            .append("rule", getRule())
            .append("state", getState())
            .append("createTime", getCreateTime())
            .toString();
    }
}